<!DOCTYPE html>
<html lang="en" class="mdl-js">

<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="description" content="Javascript documents.">
    <meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0">
    <meta name="theme-color" content="#3f51b5">
    <meta name="msapplication-navbutton-color" content="#3f51b5">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="apple-mobile-web-app-status-bar-style" content="black-translucent">
    <meta name="mobile-web-app-capable" content="yes">
    <meta name="google" content="notranslate">
    <title>Class: Environment</title>
    <link rel="icon" type="image/png" href="assets/img_docs.png">
    <link rel="stylesheet" href="https://fonts.googleapis.com/icon?family=Material+Icons">
    <link rel="stylesheet" href="https://code.getmdl.io/1.3.0/material.indigo-pink.min.css">
</head>

<body>
    <div class="mdl-layout mdl-js-layout mdl-layout--fixed-header mdl-color--grey-100">
        <header class="mdl-layout__header">
            <div class="mdl-layout__header-row">
                <span class="mdl-layout-title">Environment</span>
                <div class="mdl-layout-spacer"></div>
                <div class="mdl-textfield mdl-js-textfield mdl-textfield--expandable mdl-textfield--floating-label mdl-textfield--align-right">
                    <label class="mdl-button mdl-js-button mdl-button--icon" for="search-bar" id="search-icon">
                        <i class="material-icons">search</i>
                    </label>
                    <ul class="mdl-menu mdl-menu--bottom-left mdl-js-menu mdl-js-ripple-effect" for="search-icon" id="search-list" style="width: 225px">
                        <li class="mdl-menu__item">Enter your text to search</li>
                        <li class="mdl-menu__item"></li>
                        <li class="mdl-menu__item"></li>
                        <li class="mdl-menu__item"></li>
                        <li class="mdl-menu__item"></li>
                    </ul>
                    <div class="mdl-textfield__expandable-holder">
                        <input class="mdl-textfield__input" type="text" id="search-bar" onkeydown="setTimeout(search, 50);">
                    </div>
                </div>
            </div>
        </header>
        <div class="mdl-layout__drawer">
            <span class="mdl-layout-title">Classes</span><nav class="mdl-navigation"><a class="mdl-navigation__link"style="text-decoration:none" href="Alive.html">Alive</a><a class="mdl-navigation__link"style="text-decoration:none" href="Apple.html">Apple</a><a class="mdl-navigation__link"style="text-decoration:none" href="Energy.html">Energy</a><a class="mdl-navigation__link"style="text-decoration:none" href="Environment.html">Environment</a><a class="mdl-navigation__link"style="text-decoration:none" href="Tree.html">Tree</a></nav><hr><span class="mdl-layout-title">Events</span><nav class="mdl-navigation"><a class="mdl-navigation__link"style="text-decoration:none" href="Apple.html#event:beEaten">beEaten</a><a class="mdl-navigation__link"style="text-decoration:none" href="Environment.html#event:beforeDestroy">beforeDestroy</a></nav><hr><span class="mdl-layout-title"><a style="text-decoration:none" href="global.html">Global</a></span>
        </div>
        <main class="mdl-layout__content">
            <a name="top"></a>
            




<section>

<article style="overflow-x: scroll;">

    <div class="mdl-grid">

    <div class="mdl-color--white mdl-shadow--2dp mdl-cell mdl-cell--8-col mdl-cell--2-offset-desktop" style="padding: 24px 24px 24px 24px">
    
        
        <h3>Environment</h3>
        
            <p>Lorem ipsum dolor sit amet, <a href="Energy.html">Energy</a> consectetur adipiscing elit. Vestibulum condimentum tempus diam. Ut eget ultricies metus, vitae ornare turpis. Vivamus lectus metus, euismod quis tortor quis, pretium semper massa. Nulla mauris sapien, faucibus vitae metus et, ultrices fringilla sem. Sed laoreet tempor odio, elementum scelerisque nunc aliquet quis.</p>
        
    

    
        

    
    <h2>Constructor</h2>
    

    <h4 class="name" id="Environment"><span class="mdl-color-text--accent"></span>new Environment<span class="signature">()</span><span class="mdl-color-text--accent"></span></h4>

    








































    <h5>Source:</h5>
    <ul class="mdl-list"><li class="mdl-list__item"><a style="text-decoration:none" href="Environment.js.html">Environment.js</a>, <a style="text-decoration:none" href="Environment.js.html">line 6</a></li></ul>






















    
    
    
    </div>
    <br>

    

    

     

    

    
        <div class="mdl-color--white mdl-shadow--2dp mdl-cell mdl-cell--8-col mdl-cell--2-offset-desktop" style="padding: 24px 24px 24px 24px">
        <h3>Members</h3>
        
            
<h4 class="name" id="livingThings"><span class="mdl-color-text--accent"></span>livingThings<span class="mdl-color-text--accent"> :Array.&lt;<a style="text-decoration:none" href="Alive.html">Alive</a>></span></h4>




<p>All the living things in this environment</p>



    <h5>Type:</h5>
    <ul class="mdl-list"><li class="mdl-list__item">
Array.&lt;<a style="text-decoration:none" href="Alive.html">Alive</a>>

</li></ul>






























    <h5>Source:</h5>
    <ul class="mdl-list"><li class="mdl-list__item"><a style="text-decoration:none" href="Environment.js.html">Environment.js</a>, <a style="text-decoration:none" href="Environment.js.html">line 14</a></li></ul>












        
            
<h4 class="name" id="name"><span class="mdl-color-text--accent"></span>name<span class="mdl-color-text--accent"> :String</span></h4>




<p>The name of this environment</p>



    <h5>Type:</h5>
    <ul class="mdl-list"><li class="mdl-list__item">
String

</li></ul>






























    <h5>Source:</h5>
    <ul class="mdl-list"><li class="mdl-list__item"><a style="text-decoration:none" href="Environment.js.html">Environment.js</a>, <a style="text-decoration:none" href="Environment.js.html">line 20</a></li></ul>












        
        </div>
        <br>
    

    
        <div class="mdl-color--white mdl-shadow--2dp mdl-cell mdl-cell--8-col mdl-cell--2-offset-desktop" style="padding: 12px 24px 12px 24px">
        <h3>Methods</h3>
        
            

    

    <h4 class="name" id="start"><span class="mdl-color-text--accent"></span>start<span class="signature">(<span id="param-2">config</span><span class="mdl-tooltip mdl-tooltip--large" for="param-2">EnvironmentConfiguration</span>)</span><span class="mdl-color-text--accent"></span></h4>

    



<div class="mdl-color-text--grey-800">
    <p>Vestibulum condimentum tempus <a href="Alive.html">Alive</a> diam.</p>
</div>









    <h5>Parameters:</h5>
    

<table class="mdl-data-table" style="font-size: 12px">
    <thead>
        <tr>
            
                <th class="mdl-data-table__cell--non-numeric">Name</th>
            
            <th class="mdl-data-table__cell--non-numeric">Description</th>
            
        </tr>
    </thead>
    <tbody style="font-size: 11px">
        
        <tr>
            
                <td class="mdl-data-table__cell--non-numeric">config</td>
            

            <td class="mdl-data-table__cell--non-numeric"></td>

            
        </tr>
        
    </tbody>
</table>






























    <h5>Source:</h5>
    <ul class="mdl-list"><li class="mdl-list__item"><a style="text-decoration:none" href="Environment.js.html">Environment.js</a>, <a style="text-decoration:none" href="Environment.js.html">line 27</a></li></ul>






















        
        </div>
        <br>
    

    

    
        <h3>Events</h3>
        
            

    

    <h4 class="name" id="event:beforeDestroy">beforeDestroy</h4>

    



<div class="mdl-color-text--grey-800">
    <p>Lorem ipsum dolor sit amet, <a href="Energy.html">Energy</a> consectetur adipiscing el</p>
</div>





    <h5>Type:</h5>
    <ul>
        <li>
            
<a style="text-decoration:none" href="Energy.html">Energy</a>


        </li>
    </ul>









    <h5>Properties:</h5>
    

<table class="mdl-data-table">
    <thead>
        <tr>
            
            <th class="mdl-data-table__cell--non-numeric">Name</th>
            

            <th class="mdl-data-table__cell--non-numeric">Type</th>

            

            
        </tr>
    </thead>
    <tbody>
        

        <tr>
            
                <td class="mdl-data-table__cell--non-numeric">foo</td>
            

            <td class="mdl-data-table__cell--non-numeric">
            
                
boolean


            
            </td>

            

            

            <td class="mdl-data-table__cell--non-numeric"><p>aalks djlas</p></td>
        </tr>
        
    </tbody>
</table>




























    <h5>Source:</h5>
    <ul class="mdl-list"><li class="mdl-list__item"><a style="text-decoration:none" href="Environment.js.html">Environment.js</a>, <a style="text-decoration:none" href="Environment.js.html">line 38</a></li></ul>






















        
        <hr>
    
    </div>
</article>

</section>


            <footer class="mdl-mini-footer">
                <div class="mdl-mini-footer__left-section">
                    <div class="mdl-logo">Copyright 2016-2017&nbsp;<a class="mdl-color-text--grey-100" href="https://github.com/Astro36">Astro</a>. All rights reserved.</div>
                </div>
                <div class="mdl-mini-footer__right-section">
                    <ul class="mdl-mini-footer__link-list">
                        <li><a href="index.html">Home</a></li>
                        <li><a href="#top">Back to Top</a></li>
                    </ul>
                </div>
            </footer>
        </main>
    </div>
    <script defer src="https://code.getmdl.io/1.3.0/material.min.js"></script>
    <script type="text/javascript">
        var classList = JSON.parse('{"Alive":"<li class=mdl-menu__item><a class=mdl-menu__item style=text-decoration:none href=Alive.html>Alive</a></li>","Apple":"<li class=mdl-menu__item><a class=mdl-menu__item style=text-decoration:none href=Apple.html>Apple</a></li>","Energy":"<li class=mdl-menu__item><a class=mdl-menu__item style=text-decoration:none href=Energy.html>Energy</a></li>","Environment":"<li class=mdl-menu__item><a class=mdl-menu__item style=text-decoration:none href=Environment.html>Environment</a></li>","Tree":"<li class=mdl-menu__item><a class=mdl-menu__item style=text-decoration:none href=Tree.html>Tree</a></li>","beEaten":"<li class=mdl-menu__item><a class=mdl-menu__item style=text-decoration:none href=Apple.html#event:beEaten>beEaten</a></li>","beforeDestroy":"<li class=mdl-menu__item><a class=mdl-menu__item style=text-decoration:none href=Environment.html#event:beforeDestroy>beforeDestroy</a></li>"}'),
            searchBar = document.getElementById("search-bar"),
            searchList = document.getElementById("search-list");
        function search() {
            var text = searchBar.value.trim().toLowerCase(),
                showedList = [];
            searchList.innerHTML = "";
            if (text.length > 0) {
                for (var i in classList) {
                    var searchedText = classList[i];
                    if (showedList.length <= 5) {
                        if (i.toLowerCase().search(text) >= 0) {
                            showedList.push(searchedText);
                        }
                    } else {
                        break;
                    }
                }
            }
            for (var k = 0; k < 5; k++) {
                if (typeof showedList[k] === "string") {
                    searchList.innerHTML += showedList[k];
                } else {
                    if (k === 0) {
                        searchList.innerHTML += "<li class=mdl-menu__item>Enter your text to search</li>";
                    } else {
                        searchList.innerHTML += "<li class=mdl-menu__item></li>";
                    }
                }
            }
        }
    </script>
</body>

</html>